package com.controller;

import com.pojo.Echarts;
import com.service.EchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/EchartsController")
public class EchartsController {

    @Autowired
    private EchartsService echartsService;

    @RequestMapping("/findEcharts")
    @ResponseBody
    public Echarts findEcharts(){
        return echartsService.findCourseTypeTotals();
    }

}